<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.minshenglife.zanzan.pub.Config" %>
	<%
	String rootPath = Config.getProperty(Config.WX_BASEURL);//应用的根路径
	%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=rootPath%>">
    
    <title>修改权限等级</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  
  <body>
    <table border="1px" style="width: 100%;" > 
		<tr height="50px">
			<td>员工号</td>
			<td>姓名</td>
			<td>当前等级</td>
			<td>修改等级</td>
		</tr>
		<tr>
			<td>${user.empId}</td>
			<td>${user.emp_name}</td>
			<td>${user.postId}等级</td>
			<td>
				<select id="selectPost">  
				  <option value="">请选择等级</option>
				  <option value="S">S等级</option>   
				  <option value="A">A等级</option>  
				  <option value="B">B等级</option>  
				  <option value="C">C等级</option>  
				  <option value="D">D等级</option>
				  <option value="E">E等级</option>    
				</select>
			</td> 
		</tr>
	</table>
		<table  align="center">
		<tr>
			<td>
				<input type="button" style="align='center'" value="&nbsp;&nbsp;&nbsp;&nbsp;保存&nbsp;&nbsp;&nbsp;&nbsp;" onclick="saveUpdateUserPower('${empId}')">
			</td>
		</tr>
		</table>
  </body>
</html>
<script type="text/javascript">
	function saveUpdateUserPower(empId){
		var postId = document.getElementById("selectPost").value;
		//alert(empId);
		if(postId != ''){
			alert("修改成功");
			window.location.href = "<%=rootPath%>/userPower/saveUpdatePower.power?empId="+empId+"&postId="+postId;
		}else {
			alert("请选择用修改的权限");
		}
	}
</script>